<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/MyPage.tld" prefix="pt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>员工信息管理</title>
<link rel="stylesheet" type="text/css" href="css/admin_style.css" />
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/iframe.js"></script>
<script>
	var msg="${msg}";
	if(msg!=""){
		alert(msg);
	}
	
</script>
</head>
<body class="right_body">
	<div class="body">
		<div class="top_subnav">CMS内容管理平台 ＞ 员工列表</div>
		<div class="title_h2">
			搜索
		</div>
		<p class="line" style="margin-top:0;">
		</p>
		<form action="#" >
		<div class="filed fl">
			<label>关键词：</label>
			<input type="text" class="text" size="20">
		</div>
		<div class="filed fl">
			<label>栏目：</label>
			<input type="text" class="text" size="20">
			<select name="category" id="category" style="display:none">
				<option value="1">分类栏目</option>
				<option value="2">所有分类</option>
			</select>
		</div>
		<div class="filed fl">
			<button class="button"></button>
		</div>
		</form>
        
        <div class="tablelist">
		<table class="table">
			<tr>
			<th colspan="8" class="top_th"><a href="emp!data?id=0" class="add"><em>添加</em><span></span></a></th>
			</tr>
			<tr>
				<th>编号</th><th>登录名</th><th>员工姓名</th><th>所在部门</th><th>联系电话</th><th>入职时间</th><th>最后登录时间</th><th>操作</th>
			</tr>
			<c:forEach items="${emps }" var="e">
				<tr>
					<td>${e.empid }</td><td>${e.loginid }</td><td>${e.empname }</td>
					<td>${e.departid.departname }</td>
					<td>${e.tel }</td><td>${e.joindate }</td><td>${e.lasttime }</td>
					<td><a href="emp!show?id=${e.empid }">修改</a>&nbsp;<a href="emp!del?id=${e.empid }" onclick="return confirm('是否确认删除？')">删除</a></td>
				</tr>
			</c:forEach>

		</table>
        </div>
		<div class="page">
			<pt:page pageIndex="${page }" url="emp!list?" pageMax="${tpage }"/>

		</div>
	</div>
</body>
</html>
